package net.zjitc.seqqueue;

import net.zjitc.exception.MyQuException;

/**
 * Created by Administrator on 2017/3/30.
 */
public interface IQueue<E> {
    void enqueue(E item) throws MyQuException;//入队列操作
    E dequeue() throws MyQuException;            //出队列操作
    E peek();               //取对头元素
    int size();             // 求队列的长度
    boolean isEmpty();      //判断队列是否为空
    boolean isFull();       //判断队列是否为满
}
